It is a libray that can convert any (at least most of them) math function given by character string into an internal function, which value can be rather fast computed given for given X. So once again:
(1) string -> internal function f(x) - this step is done once (fairly fast)
(2) y = f(x) - this step can be repeated many times (rather fast)
About the library…
This small lib contains two very useful functions that can do what follows:
1° void BuildFunction (char inS) - converts string of characters into a fast computable internal form
2° double CalcFunc(double X) - fast compute the value of converted string for given X
THIS IS NOT FREE (unfortunately) It is a shareware. I have spend few hard days on creating it and I think it's worth $5. Please send me the money if you are going to write something using this lib.
Some technical information:
• All data is kept in global variables (1.2 kB)
• All operations are performed using 'double' data type
• Errors are returned via global variable funcErr
• ANSI math is used to perform opertions (math.h)
• String function is precompiled & optimised (operations on constants are performed)
• I wish, it was also PowerPC native but I haven't got the right compilator